package Test2;

public class Student {
    //属性
    String id;
    String name;
    String gender;
    double high;
    int age;
    //空参构造法
    public Student(){}
    //满参构造法
    public Student (String id, String name, String gender, double high, int age) {
        this.id = id;
        this.name = name;
        this.gender=gender;
        this.high = high;
        this.age = age;
    }
    public String getId() {
        return id;
    }
    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }
    public void setGender(String gender) {
        this.gender = gender;
    }

    public double getHigh() {
        return high;
    }
    public void setHigh(double high) {
        this.high = high;
    }

    public int getAge() {
        return age;
    }
    public void setAge(int age) {
        this.age = age;
    }
    public void printStudentInfo() {
        System.out.println("ID: " + id);
        System.out.println("Name: " + name);
        System.out.println("Gender: " + gender);
        System.out.println("High: " + high);
        System.out.println("Age: " + age);
    }
}
